<!DOCTYPE HTML>
<html>
<head>
</head>
<script>
  screen.orientation.onchange = function() {
    document.location.hash = '#' + screen.orientation.angle;
  };

  document.location.hash = '#ready';
</script>
<body>
  <div>Starting...</div>
</body>
</html>
